import { Layout } from '@fl/utils/routerHelper'

const marketing: AppRouteRecordRaw = {
    children: [
        {
            component: () => import('@/pages/marketing-promotion/marketing/voucher/list.vue'),
            meta: {
                icon: 'i-nimbus:marketing',
                title: '优惠券管理',
            },
            name: 'marketing-list',
            path: 'marketing-list',
        },
        {
            component: () => import('@/pages/marketing-promotion/marketing/voucher/detail.vue'),
            meta: {
                activeMenu: '/marketing-promotion/marketing/list',
                hidden: true,
                noTagsView: true,
                title: '优惠券数据',
            },
            name: 'marketing-detail',
            path: 'marketing-list/:id',
        },
    ],
    component: Layout,
    meta: {

        icon: 'i-nimbus:marketing',
        title: '营销',
    },
    name: 'anjutong-marketing',
    path: 'marketing',
}

export default marketing
